package cn.csc.framework.redisson.lock.annotation;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

@Target({ElementType.METHOD})
@Retention(RetentionPolicy.RUNTIME)
public @interface Lock {

    String[] key() default "";       //计算值

    String prefix() default "";   //key值前缀

    int expireTime() default 20;   //单位秒

    long waitTime() default 5;      //单位秒

    boolean isTry() default false;  //是否tryLock
}
